//
//  RemindMeTableViewCell.m
//  忘不了
//
//  Created by rimi on 16/7/8.
//  Copyright © 2016年 handuan. All rights reserved.
//

#import "RemindMeTableViewCell.h"
#import "SDAutoLayout.h"

@implementation RemindMeTableViewCell
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self loadUI];
    }
    return self;
    
}

-(void)loadUI
{
    UIImageView *bgImageView = [[UIImageView alloc]init];
    [bgImageView setImage:[UIImage imageNamed:@"cell的便签"]];
    [self.contentView addSubview:bgImageView];
    bgImageView.sd_layout.topSpaceToView(self.contentView,5).leftSpaceToView(self.contentView,20).rightSpaceToView(self.contentView,0).bottomSpaceToView(self.contentView,0);
    
    _timeLabel = [[UILabel alloc]init];
    _timeLabel.font = [UIFont systemFontOfSize:30];
    [self.contentView addSubview:_timeLabel];
    _timeLabel.sd_layout.leftSpaceToView(self.contentView,40).topSpaceToView(self.contentView,20).widthIs(200).heightIs(48);
    
    
    _headingLabel = [[UILabel alloc]init];
    _headingLabel.font = [UIFont systemFontOfSize:18];
    [self.contentView addSubview:_headingLabel];
    _headingLabel.sd_layout.leftSpaceToView(self.contentView,40).topSpaceToView(_timeLabel,0).rightSpaceToView(self.contentView,15).bottomSpaceToView(self.contentView,10);
    
    self.passImageView = [[UIImageView alloc]init];
    [self.contentView addSubview:self.passImageView];
    self.passImageView.sd_layout.rightSpaceToView(self.contentView,0).bottomSpaceToView(self.contentView,0).widthIs(60).heightIs(60);
    
//    passImageView.hidden = YES;
    
}



@end
